package com.qqt.csr.im.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 敏感词库
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName(value = "csr_sensitive_word_repo")
public class SensitiveWordRepo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 是否移除：0 否；1 是
     */
    @TableLogic(value = "0", delval = "1")
    @TableField(value = "delete_flag")
    private Integer deleteFlag;

    /**
     * 词库描述
     */
    @TableField(value = "`desc`")
    private String desc;

    /**
     * 是否启用：0 否；1 是
     */
    @TableField(value = "`enable`")
    private Integer enable;

    /**
     * 词库名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 应用场景：0 访客发送消息检测；1 客服发送消息检测
     */
    @TableField(value = "`scope`")
    private String scope;

    /**
     * 租户编号
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}